//package com.cn.jx.configuration;
//
//import org.springframework.cache.annotation.CachingConfigurerSupport;
//import org.springframework.cache.annotation.EnableCaching;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.redis.connection.RedisConnectionFactory;
//import org.springframework.data.redis.core.RedisTemplate;
//
///**
// * <p>RedisConfig redis配置
// * 
// * @author <h1>jiangxu2  2019年11月21日</h1>
// * @version v1.11.20.2019
// * @since 1.0
// * 
// * @see #redisTemplate(RedisConnectionFactory)
// * 
// */
//@Configuration
//@EnableCaching
//public class RedisConfig extends CachingConfigurerSupport {
//    
//	/**
//	 * 配置RedisTemplate
//	 * @param factory
//	 * @return
//	 */
//    @Bean
//    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory) {
//    	RedisTemplate<String, Object> template = new RedisTemplate<>();
//        // 配置连接工厂
//        template.setConnectionFactory(factory);
//        return template;
//    }
//}
